package com.yanqu.road.entity.activity.summergames;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.summergames.config.SummerGamesConvertInfo;
import com.yanqu.road.entity.activity.summergames.config.SummerGamesLotteryInfo;
import com.yanqu.road.entity.activity.summergames.config.SummerGamesProjectInfo;

import java.util.List;

public class SummerGamesConfig {

    private ActivityInfo activityInfo;

    public SummerGamesConfig(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    public int getActivityId(){
        return activityInfo.getActivityId();
    }

    public ActivityInfo getActivityInfo() {
        return activityInfo;
    }

    private List<SummerGamesLotteryInfo> lotteryInfoList;

    private List<SummerGamesProjectInfo> projectInfoList;

    private List<SummerGamesConvertInfo> convertInfoList;

    //固定前n抽，走固定配置
    private int fixNum;

    public List<SummerGamesLotteryInfo> getLotteryInfoList() {
        return lotteryInfoList;
    }

    public void setLotteryInfoList(List<SummerGamesLotteryInfo> lotteryInfoList) {
        this.lotteryInfoList = lotteryInfoList;
    }

    public List<SummerGamesProjectInfo> getProjectInfoList() {
        return projectInfoList;
    }

    public void setProjectInfoList(List<SummerGamesProjectInfo> projectInfoList) {
        this.projectInfoList = projectInfoList;
    }

    //参赛道具
    private int itemId;

    public void setActivityInfo(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    //十连参赛限制
    private int tenGachaLimit;

    private int EXCHANGE_SCORE_ITEM_ID;

    //跨服页签交换请求记录上限
    private int SUMMERGAME_EXCHANGE_RECORD_CROSS;

    //商会页签同品质交换请求记录上限
    private int SUMMERGAME_EXCHANGE_RECORD_BASE;

    //对一个物品进行交换请求的数量下限
    private int SUMMERGAME_EXCHANGE_NUM_LIMIT;

    //跨服和商会页签发布交换请求数量上限
    private int SUMMERGAME_PUBLISH_EXCHANGE_RECORD;

    //玩家单个页签可接收的交换请求数量上限
    private int SUMMERGAME_RECEIVE_EXCHANGE_RECORD;

    //参赛券使用奖励
    private String SUMMERGAME_ITEM_USE_REWARD;

    private String SUMMERGAME_MEDALS_RECLAIM;

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getTenGachaLimit() {
        return tenGachaLimit;
    }

    public void setTenGachaLimit(int tenGachaLimit) {
        this.tenGachaLimit = tenGachaLimit;
    }

    public int getEXCHANGE_SCORE_ITEM_ID() {
        return EXCHANGE_SCORE_ITEM_ID;
    }

    public void setEXCHANGE_SCORE_ITEM_ID(int EXCHANGE_SCORE_ITEM_ID) {
        this.EXCHANGE_SCORE_ITEM_ID = EXCHANGE_SCORE_ITEM_ID;
    }

    public SummerGamesLotteryInfo getSummerGamesLotteryInfo(int id){
        for (SummerGamesLotteryInfo memoryInfo : lotteryInfoList) {
            if(memoryInfo.getId() == id){
                return memoryInfo;
            }
        }
        return null;
    }

    public SummerGamesConvertInfo getSummerGamesConvertInfo(int id){
        for (SummerGamesConvertInfo info : convertInfoList) {
            if(info.getId() == id){
                return info;
            }
        }
        return null;
    }

    public List<SummerGamesConvertInfo> getConvertInfoList() {
        return convertInfoList;
    }

    public void setConvertInfoList(List<SummerGamesConvertInfo> convertInfoList) {
        this.convertInfoList = convertInfoList;
    }

    public int getSUMMERGAME_EXCHANGE_RECORD_CROSS() {
        return SUMMERGAME_EXCHANGE_RECORD_CROSS;
    }

    public void setSUMMERGAME_EXCHANGE_RECORD_CROSS(int SUMMERGAME_EXCHANGE_RECORD_CROSS) {
        this.SUMMERGAME_EXCHANGE_RECORD_CROSS = SUMMERGAME_EXCHANGE_RECORD_CROSS;
    }

    public int getSUMMERGAME_EXCHANGE_RECORD_BASE() {
        return SUMMERGAME_EXCHANGE_RECORD_BASE;
    }

    public void setSUMMERGAME_EXCHANGE_RECORD_BASE(int SUMMERGAME_EXCHANGE_RECORD_BASE) {
        this.SUMMERGAME_EXCHANGE_RECORD_BASE = SUMMERGAME_EXCHANGE_RECORD_BASE;
    }

    public int getSUMMERGAME_EXCHANGE_NUM_LIMIT() {
        return SUMMERGAME_EXCHANGE_NUM_LIMIT;
    }

    public void setSUMMERGAME_EXCHANGE_NUM_LIMIT(int SUMMERGAME_EXCHANGE_NUM_LIMIT) {
        this.SUMMERGAME_EXCHANGE_NUM_LIMIT = SUMMERGAME_EXCHANGE_NUM_LIMIT;
    }

    public int getSUMMERGAME_PUBLISH_EXCHANGE_RECORD() {
        return SUMMERGAME_PUBLISH_EXCHANGE_RECORD;
    }

    public void setSUMMERGAME_PUBLISH_EXCHANGE_RECORD(int SUMMERGAME_PUBLISH_EXCHANGE_RECORD) {
        this.SUMMERGAME_PUBLISH_EXCHANGE_RECORD = SUMMERGAME_PUBLISH_EXCHANGE_RECORD;
    }

    public int getSUMMERGAME_RECEIVE_EXCHANGE_RECORD() {
        return SUMMERGAME_RECEIVE_EXCHANGE_RECORD;
    }

    public void setSUMMERGAME_RECEIVE_EXCHANGE_RECORD(int SUMMERGAME_RECEIVE_EXCHANGE_RECORD) {
        this.SUMMERGAME_RECEIVE_EXCHANGE_RECORD = SUMMERGAME_RECEIVE_EXCHANGE_RECORD;
    }

    public String getSUMMERGAME_ITEM_USE_REWARD() {
        return SUMMERGAME_ITEM_USE_REWARD;
    }

    public void setSUMMERGAME_ITEM_USE_REWARD(String SUMMERGAME_ITEM_USE_REWARD) {
        this.SUMMERGAME_ITEM_USE_REWARD = SUMMERGAME_ITEM_USE_REWARD;
    }

    public String getSUMMERGAME_MEDALS_RECLAIM() {
        return SUMMERGAME_MEDALS_RECLAIM;
    }

    public void setSUMMERGAME_MEDALS_RECLAIM(String SUMMERGAME_MEDALS_RECLAIM) {
        this.SUMMERGAME_MEDALS_RECLAIM = SUMMERGAME_MEDALS_RECLAIM;
    }

    public int getFixNum() {
        return fixNum;
    }

    public void setFixNum(int fixNum) {
        this.fixNum = fixNum;
    }
}
